package com.piggy.logi.sys.service;


import com.piggy.logi.sys.domain.LogiPickupOrder;
import com.piggy.logi.sys.vo.LogiPickupOrderExtVo;
import com.piggy.logi.sys.vo.LogiPickupOrderVo;
import com.piggy.logi.sys.bo.LogiPickupOrderQueryBo;
import com.piggy.logi.sys.bo.LogiPickupOrderEditBo;
import com.piggy.common.core.web.page.IServicePlus;

import com.piggy.common.core.web.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 提货单Service接口
 *
 * @author piggy
 * @date 2023-08-25
 */
public interface ILogiPickupOrderService extends IServicePlus<LogiPickupOrder> {
    /**
     * 查询单个
     *
     * @return
     */
    LogiPickupOrderExtVo queryById(Long id);

    /**
     * 查询单个
     *
     * @return
     */
    LogiPickupOrderExtVo queryByWaybillId(Long waybillId);

    /**
     * 查询列表
     */
    TableDataInfo<LogiPickupOrderExtVo> queryPageList(LogiPickupOrderQueryBo bo);

    /**
     * 查询列表
     */
    List<LogiPickupOrderExtVo> queryList(LogiPickupOrderQueryBo bo, boolean ignoreWaybill);

    /**
     * 根据新增业务对象插入提货单
     *
     * @param bo 提货单新增业务对象
     * @return
     */
    LogiPickupOrderExtVo insertByAddBo(LogiPickupOrderEditBo bo);

    /**
     * 根据编辑业务对象修改提货单
     *
     * @param bo 提货单编辑业务对象
     * @return
     */
    LogiPickupOrderExtVo updateByEditBo(LogiPickupOrderEditBo bo);

    /**
     * 校验并删除数据
     *
     * @param ids     主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
